<template>
  <div>
    <el-col :span="span">
      <slot></slot>
    </el-col>
  </div>
</template>

<script>
export default {
  name: "InfoItem",
  props:{
    span:Number
  },
  created() {
    console.log(this.information)
  },
  computed:{
    information() {
      let parent = this.$parent
      let parentName = parent.$options.componentName
      while (parentName !== 'Information') {
        parent = parent.$parent
        parentName = parent.$options.componentName
      }
      return parent
    }
  }
}
</script>

<style scoped>

</style>
